<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="ISO-8859-1"%>
<%@ page import = "quiz.DataBase" %>
<jsp:include page="templates/header.jsp" flush="true">
	<jsp:param value = "Administration | Quizzard" name = "title" />
</jsp:include>
<jsp:include page="templates/title_bar.jsp" flush = "true">
	<jsp:param value = "Administration Page" name = "title" />
</jsp:include>
<div id = "content">
<div class = "center">
<%
	String error = (String)request.getAttribute("error");
	if (error != null) {
		out.println("<div id = 'error'>"+error+"</div>");
	}
%>
<div class = "bottom_border">
<%= (String)request.getAttribute("summaryHTML") %>
</div>
<div class = "padding"></div>
<form method = "post" action = "Announce">
<div><label for = "content">Announcement: </label><textarea style="vertical-align:middle;" rows="2" name = "content"></textarea><input type = "submit" class = "btn" value = "Go" /></div>
</form>


<!-- 

TODO: Andrew, make this page support error messages. 
Site stats: This is received as an html string on the request; parameter called "summaryHTML".

Announcements
Form: an announcement text box with parameter name "content" and a button to submit the form. Action is "Announce"

Account promotion:
Have a form: "Enter a username to promote to admin"
the parameter is named "username"
Action: MakeAdmin

Account deletion
Have a form: "Enter a username to delete its account"
the parameter is named "username"
Action: RemoveAccount

Still have to find the optimal way to support RemoveQuiz
and ClearQuizHistory servlet
	
 -->
</div>
</div>
<jsp:include page="templates/footer.jsp" flush="true" />